home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format CD 43
/
Amiga Format CD43 (1999)(Future Publishing)(GB)(Track 1 of 2)[!][issue 1999-09].iso
/
-serious-
/
hardware
/
adflib
/
adflibppc
/
lib
/
smakefile
< prev
Wrap
Makefile
|
1999-06-14
|
1KB
|
59 lines
# ADFLib Makefile for AmigaPPC platform
# modified Linux version, 1999 by Andreas R. Kleinert
# real devices routines location
NATIV_DIR = /Lib/Generic
VER=0.7.8
LIBS=libadf.a
SHAREDLIB=libadf.so
AR=ppc-amigaos-ar
RANLIB=ppc-amigaos-ranlib
TAR=tar
DEFINES=
CFLAGS=$(DEFINES)
CC=SCPPC
DEPEND=makedepend
LDFLAGS=
LDSHARED=$(CC)
OBJS= adf_hd.o adf_disk.o adf_raw.o adf_bitm.o adf_dump.o\
adf_util.o adf_env.o adf_nativ.o adf_dir.o adf_file.o adf_cache.o \
adf_link.o
libadf.a: $(OBJS)
$(AR) r $@ $(OBJS)
$(RANLIB) $@
Copy libadf.a /Bin/AmigaPPC/
$(SHAREDLIB).$(VER): $(OBJS)
$(LDSHARED) -o $@ $(OBJS)
rm -f $(SHAREDLIB) $(SHAREDLIB).1
ln -s $@ $(SHAREDLIB)
ln -s $@ $(SHAREDLIB).1
# to define LITT_ENDIAN on little endian machines (intel)
# checks for sizeof(long)=4, sizeof(short)=2, sizeof(int)=4
defendian.h: myconf
myconf
adf_nativ.o: ${NATIV_DIR}/adf_nativ.c ${NATIV_DIR}/adf_nativ.h
$(CC) ${CFLAGS} ${NATIV_DIR}/adf_nativ.c ObjectName=adf_nativ.o
clean:
@rm $(OBJS) $(EXE) defendian.h $(LIBS) $(SHAREDLIB)
src:
@rm adflib.zip
@zip -9r adflib.zip *.h *.c Makefile myconf Docs Linux Win32 Refs runtest
depend: defendian.h
$(DEPEND) -v -- $(CFLAGS) -- *.[ch]